import QtQuick 1.1

Item {
    id: btnItem
    property variant btnName
    property variant txtSize: 15
//    width: 200
//    height: 200
    Rectangle{
        gradient: Gradient {
            GradientStop {
                position: 0
                color: "#513a3a"
            }

            GradientStop {
                position: 0.170
                color: "#534141"
            }

            GradientStop {
                position: 0.290
                color: "#603d3d"
            }

            GradientStop {
                position: 0.500
                color: "#5e3434"
            }

            GradientStop {
                position: 1
                color: "#000000"
            }
        }
        anchors.fill: parent
        border.width: 2
        border.color: "black"
        Text {
            text: btnName
            anchors.centerIn: parent
            font.pixelSize: txtSize
            color: "white"
        }
        MouseArea {
            anchors.fill: parent
            onClicked: {
                Qt.quit();
            }
        }
    }

}
